package user

import (
	"context"
	"github.com/gogf/gf/contrib/rpc/grpcx/v2"
	"github.com/gogf/gf/v2/errors/gcode"
	"github.com/gogf/gf/v2/errors/gerror"
	asset2 "grpc-common/api/user/asset"
	"grpc-common/api/user/personal"
)

type Controller struct {
	asset2.UnimplementedAssetServer
}

func Register(s *grpcx.GrpcServer) {
	asset2.RegisterAssetServer(s.Server, &Controller{})
}

func (*Controller) FindWalletBySymbol(ctx context.Context, req *asset2.AssetReq) (res *asset2.MemberWallet, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}

func (*Controller) ChargeWalletBySymbol(ctx context.Context, req *asset2.AssetReqBalance) (res *asset2.MemberWallet, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}

func (*Controller) InsertWallet(ctx context.Context, req *asset2.InsertWalletReq) (res *asset2.MemberWallet, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}

func (*Controller) GetUserList(ctx context.Context, req *personal.PageInfo) (res *personal.UserListResponse, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}

func (*Controller) GetUserByMobile(ctx context.Context, req *personal.MobileRequest) (res *personal.UserInfoResponse, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}

func (*Controller) GetUserById(ctx context.Context, req *personal.IdRequest) (res *personal.UserInfoResponse, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}

func (*Controller) CreateUser(ctx context.Context, req *personal.CreateUserInfo) (res *personal.UserInfoResponse, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}

func (*Controller) UpdateUser(ctx context.Context, req *personal.UpdateUserInfo) (res *personal.UpdateUserRes, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}

func (*Controller) CheckPassWord(ctx context.Context, req *personal.PasswordCheckInfo) (res *personal.CheckResponse, err error) {
	return nil, gerror.NewCode(gcode.CodeNotImplemented)
}
